package io.itit.ecp.admin.provide.action.resp;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

@Data
@ToString
@ApiModel("通过Access_token获取用户角色信息响应结果")
public class CommonLoginUserRoleResp implements Serializable {

    private static final long serialVersionUID = 1L;

//    {
//        "success": true,
//            "message": "查询成功！",
//            "content": [
//        {
//            "creater": "a3731c58-dff3-49d7-ad4d-abdbbeb7930f",
//                "createTime": 1721035681825,
//                "modifier": null,
//                "modifyTime": null,
//                "opusRsType": "ROLE",
//                "isCheck": false,
//                "isLeaf": null,
//                "roleId": "9c2363c6-49ba-4051-86ab-7add73bcc396",
//                "rootOrgId": "8055930e-43fa-4447-81db-d648700365da",
//                "roleCode": "GZ-NENGTAN-ADMIN-000",
//                "roleName": "超级管理员",
//                "appSoftId": "d46d1e03-b258-43f3-b5a0-c458aa37e023",
//                "roleType": null,
//                "roleSortNo": 1,
//                "roleMemo": null,
//                "roleDeleted": "0",
//                "isGlobalRole": "1",
//                "roleOwnerOrgId": null,
//                "keyword": null,
//                "isDisabled": false,
//                "funcIdList": null,
//                "modifierName": null,
//                "createrName": null,
//                "orgName": null,
//                "opuSccExFieldList": null,
//                "acRoleObjNames": null,
//                "serialNumber": null,
//                "queryOrgIds": null,
//                "appSoftCode": null,
//                "querySoftIds": null,
//                "id": "ROLE_9c2363c6-49ba-4051-86ab-7add73bcc396"
//        }
//    ]
//    }

    private Boolean success;

    private String message;

    private List<Role> content;


    @Data
    public static class Role{
        public String creater;
        public Long createTime;
        public String modifier;
        public String modifyTime;
        public String opusRsType;
        public String isCheck;
        public String isLeaf;
        public String roleId;
        public String roleCode;
        public String roleName;
        public String appSoftId;
        public String roleType;
        public String roleSortNo;
        public String roleMemo;
        public String roleDeleted;
        public String isGlobalRole;
        public String roleOwnerOrgId;
        public String keyword;
        public String isDisabled;
        public String funcIdList;
        public String modifierName;
        public String createrName;
        public String orgName;
        public String opuSccExFieldList;
        public String acRoleObjNames;
        public String serialNumber;
        public String queryOrgIds;
        public String appSoftCode;
        public String querySoftIds;
        public String id;
    }

}
